import Vue from 'vue'
import Router from 'vue-router'
import HelloContainer from "./components/HelloWorld.vue"
//为组件指定访问路径
// idloves
// (1)登录网页
import Login from "./idloves/Login.vue"
//(2)商品列表网页
import Product from "./idloves/Product.vue"
//(3)购物车网页
import Cart from "./idloves/Cart.vue"
//(4)主页index
import Index from "./idloves/Index.vue"
//(5)注册页面
import Register from "./idloves/Register.vue"
//(7)商品详情页面
import Details from "./idloves/Details.vue"

//(6)登录成功，5秒跳转页面
// import Jump from "./idloves/Jump.vue"
Vue.use(Router)

export default new Router({
  routes: [
    {path:"/",component:Index},
    {path:"/Index",component:Index},
    {path:"/Login",component:Login},
    {path:"/Product",component:Product},
    {path:"/Cart",component:Cart},
    {path:"/Register",component:Register},
    {path:"/Details",component:Details}
    // {path:"/Jump",component:Jump}
  ]
})
